//
//  MyCouponsVIewModel.m
//  HTP
//
//  Created by 王鑫 on 15/11/28.
//  Copyright © 2015年 nit. All rights reserved.
//

#import "MyCouponsVIewModel.h"
#import "MyCouponsModel.h"

@implementation MyCouponsVIewModel

- (void)getCouponsInfoByuserId:(NSString *)userId {
    tns1_getCouponsInfoByuserId *getCoupons = [[tns1_getCouponsInfoByuserId alloc] init];
    getCoupons.userId = userId;
    [WSDLNetWork shareInstance:^interfaceSoapBindingResponse *(interfaceSoapBinding *binding){
        return [binding getCouponsInfoByuserIdUsingParameters:getCoupons headerElements:nil];
    }withResult:^(NSDictionary *message){
        [self fetchResult:message];
    }throwError:^(NSError *error){
        [self fetchError];
    }];
}
@end
